{% extends "menues.html" %}

{% block main %}
<h4 class="well well-small">Agregar/Editar Detalle Padrón</h4>
<form class="form" action="" method="post" >
	{% block form_content %}
			
			
			{{ form.media }}
			{% for field in form %}{% csrf_token %}
			 <div class="control-group">

                                <label class="control-label">{{field.label|title}}  </label>
                                {{field}}
                                {% if field.field.required %}
                                    <em>*</em>
                                {% endif %}
                                {% if field.errors %}
                                 <div class="alert alert-error">
                                 {{ field.errors }}
                                 </div>
                                {% endif %}
                             </div>
			{% endfor %}
	
	{% endblock %}

    {% block form_buttons %}
		
			{% block button_inputs %}
				 <div class="control-group ">
				<input type="submit" class="btn btn-primary" value="{% if submit_text %} {{submit_text}} {%else%} Guardar {% endif %}"/>
				</div>
			{% endblock %}
		
	{% endblock%}
</form>

{% endblock%}
